package com.yanqu.road.entity.activity.stronghold;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.DataStatus;

@FieldTypeAnnotation(tableName = "t_c_activity_stronghold_box")
public class StrongholdWildBox extends DataObject {
    @FieldTypeAnnotation(select = true,update = true)
    private int activityId;
    @FieldTypeAnnotation(update = true)
    private int groupId;
    @FieldTypeAnnotation(update = true)
    private int boxId;
    @FieldTypeAnnotation
    private int wildId;
    @FieldTypeAnnotation
    private int type;
    @FieldTypeAnnotation
    private long serverId;
    @FieldTypeAnnotation
    private long userId;
    @FieldTypeAnnotation
    private long pickUpTime;
    @FieldTypeAnnotation
    private long openTime;
    private String reward;
    private boolean beSearched;

    public StrongholdWildBox() {
    }

    public StrongholdWildBox(int boxId, int type) {
        this.boxId = boxId;
        this.type = type;
    }

    public int getActivityId() {
        return activityId;
    }

    public int getBoxId() {
        return boxId;
    }

    public int getWildId() {
        return wildId;
    }

    public int getType() {
        return type;
    }

    public long getServerId() {
        return serverId;
    }

    public long getUserId() {
        return userId;
    }

    public long getPickUpTime() {
        return pickUpTime;
    }

    public long getOpenTime() {
        return openTime;
    }

    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }

    }
    public void setBoxId(int boxId) {
        if (this.boxId != boxId) {
            this.boxId = boxId;
            setOp(DataStatus.Update);
        }

    }
    public void setWildId(int wildId) {
        if (this.wildId != wildId) {
            this.wildId = wildId;
            setOp(DataStatus.Update);
        }

    }
    public void setType(int type) {
        if (this.type != type) {
            this.type = type;
            setOp(DataStatus.Update);
        }

    }
    public void setServerId(long serverId) {
        if (this.serverId != serverId) {
            this.serverId = serverId;
            setOp(DataStatus.Update);
        }

    }
    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }

    }
    public void setPickUpTime(long pickUpTime) {
        if (this.pickUpTime != pickUpTime) {
            this.pickUpTime = pickUpTime;
            setOp(DataStatus.Update);
        }

    }
    public void setOpenTime(long openTime) {
        if (this.openTime != openTime) {
            this.openTime = openTime;
            setOp(DataStatus.Update);
        }
    }

    public void setReward(String reward) {
        this.reward = reward;
        setUpdateOption();
    }

    public String getReward() {
        return reward;
    }

    public boolean isBeSearched() {
        return beSearched;
    }

    public void setBeSearched(boolean beSearched) {
        if (this.beSearched != beSearched) {
            this.beSearched = beSearched;
            setUpdateOption();
        }
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }
}
